// 账单对账 销售
import request from '@/utils/request'

// 获取一定时间范围的收入
export const getOrderAmount = (params) => request({
  url: '/order-service/report/orderAmount',
  params
})

// 获取一定时间范围内的订单
export const getOrderCount = (params) => request({
  url: '/order-service/report/orderCount',
  params
})
// 获取销售额统计
export const getSaleSum = (collectType = 1, start, end) => request({
  url: `/order-service/report/amountCollect/${collectType}/${start}/${end}`
})

// 根据地区汇总销售额数据(销售量分布)
export const getSaleByarea = (start, end) => request({
  url: `/order-service/report/regionCollect/${start}/${end}`
})
